package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.LotTicketMapper;
import com.ruoyi.quartz.domain.LotTicket;
import com.ruoyi.quartz.service.ILotTicketService;

/**
 * 彩票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class LotTicketServiceImpl implements ILotTicketService 
{
    @Autowired
    private LotTicketMapper lotTicketMapper;

    /**
     * 查询彩票信息
     * 
     * @param id 彩票信息主键
     * @return 彩票信息
     */
    @Override
    public LotTicket selectLotTicketById(String id)
    {
        return lotTicketMapper.selectLotTicketById(id);
    }

    /**
     * 查询彩票信息列表
     * 
     * @param lotTicket 彩票信息
     * @return 彩票信息
     */
    @Override
    public List<LotTicket> selectLotTicketList(LotTicket lotTicket)
    {
        return lotTicketMapper.selectLotTicketList(lotTicket);
    }

    /**
     * 新增彩票信息
     * 
     * @param lotTicket 彩票信息
     * @return 结果
     */
    @Override
    public int insertLotTicket(LotTicket lotTicket)
    {
        return lotTicketMapper.insertLotTicket(lotTicket);
    }

    /**
     * 修改彩票信息
     * 
     * @param lotTicket 彩票信息
     * @return 结果
     */
    @Override
    public int updateLotTicket(LotTicket lotTicket)
    {
        return lotTicketMapper.updateLotTicket(lotTicket);
    }

    /**
     * 批量删除彩票信息
     * 
     * @param ids 需要删除的彩票信息主键
     * @return 结果
     */
    @Override
    public int deleteLotTicketByIds(String[] ids)
    {
        return lotTicketMapper.deleteLotTicketByIds(ids);
    }

    /**
     * 删除彩票信息信息
     * 
     * @param id 彩票信息主键
     * @return 结果
     */
    @Override
    public int deleteLotTicketById(String id)
    {
        return lotTicketMapper.deleteLotTicketById(id);
    }
}
